// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
    compatibilityDate: '2024-04-03',
    devtools: {enabled: true},
    css: [
        'normalize.css',
        '@/assets/css/global.scss',
        '@/assets/cus-font/iconfont.css'
    ],
    vite: {
        css: {
            preprocessorOptions: {
                scss: {
                    additionalData: `@import "@/assets/css/variables.scss";`
                }
            }
        }
    },
    app: {
        head: {
            title: 'phone-store 手机商城',
            meta: [
                {
                    name: 'description',
                    content:
                        'phone-store,手机商城,phone-store,手机商城,phone-store,手机商城'
                },
                {
                    name: 'keywords',
                    content: 'phone-store,手机商城,phone-store,手机商城,phone-store,手机商城'
                },
                { name: 'viewport', content: 'width=device-width, initial-scale=1' }
            ],
            // 站点图标
            link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
            // noscript标签 若浏览器禁用js的友好提示
            noscript: [{ children: 'Javascript is required' }]
        }
    },
    modules: [
        '@pinia/nuxt',
        '@element-plus/nuxt'
    ],
    elementPlus: { /** Options */ }
})
